package com.blackink.controller;

import org.apache.shiro.SecurityUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    @RequestMapping("/index")
    public String indexController(){
        String loginAccount = SecurityUtils.getSubject().getPrincipal().toString();
        if ("admin".equals(loginAccount)){
            return "index";
        }else {
            return "qqq";
        }

    }
}
